const Sequelize = require('sequelize');
module.exports = function(sequelize, DataTypes) {
  return sequelize.define('D_otopes', {
    ID: {
      type: DataTypes.INTEGER,
      allowNull: false,
      primaryKey: true
    },
    Sample_ID: {
      type: DataTypes.INTEGER,
      allowNull: true,
      comment: "样品ID"
    },
    Sample_Name: {
      type: DataTypes.STRING(50),
      allowNull: true,
      comment: "样品名称"
    },
    Sample_fractions: {
      type: DataTypes.STRING(50),
      allowNull: true,
      comment: "Sample fractions"
    },
    Measurement_date_time: {
      type: DataTypes.STRING(200),
      allowNull: true,
      comment: "Category"
    },
    Age: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Age (for caculating initial value; Ma)"
    },
    Rb_SE1: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE (Ma)"
    },
    Rb_Rb: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Rb"
    },
    Rb_Sr: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Sr"
    },
    Rb_87Rb_86Sr: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "87Rb\/86Sr"
    },
    Rb_87Rb_86Sr_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Rb_87Sr_86Sr: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "87Sr\/86Sr"
    },
    Rb_87Sr_86Sr_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Rb87_decay_constant: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "(87Sr\/86Sr)i"
    },
    Sm_Sm: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Sm"
    },
    Sm_Nd: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Nd"
    },
    Sm_147Sm_144Nd: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "147Sm\/144Nd"
    },
    Sm_147Sm_144Nd_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Sm_143Nd_144Nd: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "143Nd\/144Nd"
    },
    Sm_143Nd_144Nd_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Sm147_decay_constant: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "εNd(t)"
    },
    Pb_206Pb_204Pb: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "206Pb\/204Pb"
    },
    Pb_206Pb_204Pb_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Pb_207Pb_204Pb: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "207Pb\/204Pb"
    },
    Pb_207Pb_204Pb_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Pb_208Pb_204Pb: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "208Pb\/204Pb"
    },
    Pb_208Pb_204Pb_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Lu_Lu: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Lu"
    },
    Lu_Hf: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Hf"
    },
    Lu_176Yb177Hf: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "176Yb177Hf (only used for LA-ICPMS)"
    },
    Lu_176Yb177Hf_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Lu_176Lu_177Hf: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "176Lu\/177Hf"
    },
    Lu_176Lu_177Hf_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Lu_176Hf_177Hf: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "176Hf\/177Hf"
    },
    Lu_176Hf_177Hf_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    lu_176Lu_decay_constant: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "εHf(t)"
    },
    Re_Re: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Re"
    },
    Re_Os: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Os"
    },
    Re_187Re_188Os: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "187Re\/188Os"
    },
    Re_187Re_188Os_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Re_187Os_188Os: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "187Os\/188Os"
    },
    Re_187Os_188Os_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    Re187_decay_constant: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "(187Os\/188Os)i"
    },
    O_16O: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "16O"
    },
    O_17O: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "17O"
    },
    O_18O: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "18O"
    },
    O_18O_16O: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "18O\/16O"
    },
    O_18O_16O_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE%"
    },
    O_17O_16O: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ18OVSMOW"
    },
    O_17O_16O_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    O_18OVSMOW: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ17OVSMOW"
    },
    O_18OVSMOW_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    O_17OVSMOW: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Δ17O"
    },
    O_17OVSMOW_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    O_17O_2: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "Δ17O"
    },
    O_17O_2_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_D: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δD"
    },
    delta_D_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_7Li: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ7Li"
    },
    delta_7Li_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_11B: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ11B"
    },
    delta_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_13C: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ13C"
    },
    delta_13C_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_15N: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ15N"
    },
    delta_15N_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_25Mg: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ25Mg"
    },
    delta_25M_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_26Mg: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ26Mg"
    },
    delta_26Mg_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_29Si: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ29Si"
    },
    delta_29Si_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_30Si: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ30Si"
    },
    delta_30Si_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_33S: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ33S"
    },
    delta_33S_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_34S: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ34S"
    },
    delta_34S_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    delta_36S: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "δ36S"
    },
    delta_36S_1SE: {
      type: DataTypes.DOUBLE,
      allowNull: true,
      comment: "1SE"
    },
    remarks: {
      type: DataTypes.STRING(200),
      allowNull: true,
      comment: "备注"
    },
    OrderNo: {
      type: DataTypes.INTEGER,
      allowNull: true,
      comment: "排序"
    },
    status: {
      type: DataTypes.INTEGER,
      allowNull: true,
      comment: "是否启用"
    },
    CreateID: {
      type: DataTypes.INTEGER,
      allowNull: true,
      comment: "创建人ID"
    },
    Creator: {
      type: DataTypes.STRING(50),
      allowNull: true,
      comment: "创建人"
    },
    CreateDate: {
      type: DataTypes.DATE,
      allowNull: true,
      comment: "创建时间"
    },
    ModifyID: {
      type: DataTypes.INTEGER,
      allowNull: true,
      comment: "修改人ID"
    },
    Modifier: {
      type: DataTypes.STRING(50),
      allowNull: true,
      comment: "修改人"
    },
    ModifyDate: {
      type: DataTypes.DATE,
      allowNull: true,
      comment: "修改时间"
    }
  }, {
    sequelize,
    tableName: 'D_otopes',
    schema: 'public',
    timestamps: false,
    indexes: [
      {
        name: "D_otopes_ID_idx",
        fields: [
          { name: "ID" },
        ]
      },
      {
        name: "D_otopes_Sample_ID_idx",
        fields: [
          { name: "Sample_ID" },
        ]
      },
      {
        name: "D_otopes_pkey",
        unique: true,
        fields: [
          { name: "ID" },
        ]
      },
    ]
  });
};
